import Vue from 'vue'
import Router from 'vue-router'

const Login = () => import(/* webpackChunkName: "login" */ '../view/login/index')   //登录
const Home = () => import(/* webpackChunkName: "home" */ '../view/residentInfo/home')   //首页
const AccoutInfo = () => import(/* webpackChunkName: "residentInfo" */ '../view/residentInfo/accoutInfo')   //户信息
const Addmember = () => import(/* webpackChunkName: "residentInfo" */ '../view/residentInfo/addmember')   //添加居民信息
const MemberOptionInfo = () => import(/* webpackChunkName: "residentInfo" */ '../view/residentInfo/memberOptionInfo')   //添加居民选填信息
const MemberSpecialInfo= () => import(/* webpackChunkName: "residentInfo" */ '../view/residentInfo/memberSpecialInfo')   //添加居民特殊信息
const Petition= () => import(/* webpackChunkName: "residentInfo" */ '../view/residentInfo/petition')   //添加居民上访记录信息
const Dispute= () => import(/* webpackChunkName: "residentInfo" */ '../view/residentInfo/dispute')   //添加居民纠纷记录信息
const Subsidy= () => import(/* webpackChunkName: "residentInfo" */ '../view/residentInfo/subsidy')   //添加居民补贴记录信息
const Subsidytype= () => import(/* webpackChunkName: "residentInfo" */ '../view/residentInfo/subsidytype')   //获取居民补类型信息
const Selecthouse = () => import(/* webpackChunkName: "residentInfo" */ '../view/residentInfo/selecthouse')   //选择户
const EditbaseInfo = () => import(/* webpackChunkName: "residentInfo" */ '../view/residentInfo/editbaseInfo')   //基本信息编辑
const Edittudi = () => import(/* webpackChunkName: "residentInfo" */ '../view/residentInfo/edittudi')   //土地信息编辑
const Editsdqtx = () => import(/* webpackChunkName: "residentInfo" */ '../view/residentInfo/editsdqtx')   //水电气通信信息编辑
const Editzhengdi = () => import(/* webpackChunkName: "residentInfo" */ '../view/residentInfo/editzhengdi')   //征地信息编辑
const Editfuken = () => import(/* webpackChunkName: "residentInfo" */ '../view/residentInfo/editfuken')   //复垦信息编辑
const Edithouse = () => import(/* webpackChunkName: "residentInfo" */ '../view/residentInfo/edithouse')   //房屋信息编辑
const Editchanye = () => import(/* webpackChunkName: "residentInfo" */ '../view/residentInfo/editchanye')   //产业信息编辑
const CompanyInfo = () => import(/* webpackChunkName: "companyInfo" */ '../view/companyInfo/index')   //企业信息
const CompanyDetail = () => import(/* webpackChunkName: "companyInfo" */ '../view/companyInfo/companyDetail')   //企业信息详情
const RequiredDetail = () => import(/* webpackChunkName: "companyInfo" */ '../view/companyInfo/requiredDetail')   //企业信息详情基本必填信息编辑
const OptionDetail = () => import(/* webpackChunkName: "companyInfo" */ '../view/companyInfo/optionDetail')   //企业信息详情基本选填信息编辑
const Addproduct = () => import(/* webpackChunkName: "companyInfo" */ '../view/companyInfo/addproduct')   //企业信息详情添加产品信息
const userInfo = () => import(/* webpackChunkName: "userInfo" */ '../view/userInfo/index')   //个人信息
const userInfo1 = () => import(/* webpackChunkName: "userInfo" */ '../view/userInfo/index1')   //个人信息
const resetPwd = () => import(/* webpackChunkName: "userInfo" */ '../view/userInfo/resetPwd/reset') //修改密码
const problem = () => import(/* webpackChunkName: "userInfo" */ '../view/userInfo/problems/index') //修改密码
const aboutUs = () => import(/* webpackChunkName: "userInfo" */ '../view/userInfo/aboutUs/index') //关于我们

Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            name: 'login',
            component: Login,
            // meta:{keepAlive: true}
        }, {
            path: '/home',
            name: 'home',
            component: Home,
            // meta:{keepAlive: true}
        }, {
            path: '/residentInfo/accoutInfo',
            name: 'accoutInfo',
            component: AccoutInfo,
            // meta:{keepAlive: true}
        }, {
            path: '/residentInfo/addmember',
            name: 'addmember',
            component: Addmember,
            // meta:{keepAlive: true}
        }, {
            path: '/residentInfo/memberOptionInfo',
            name: 'memberOptionInfo',
            component: MemberOptionInfo,
        }, {
            path: '/residentInfo/memberSpecialInfo',
            name: 'memberSpecialInfo',
            component: MemberSpecialInfo,
        }, {
            path: '/residentInfo/petition',
            name: 'petition',
            component: Petition,
        },{
            path: '/residentInfo/dispute',
            name: 'dispute',
            component: Dispute,
        },{
            path: '/residentInfo/subsidy',
            name: 'subsidy',
            component: Subsidy,
        },{
            path: '/residentInfo/subsidytype',
            name: 'subsidytype',
            component: Subsidytype,
        }, {
            path: '/residentInfo/selecthouse',
            name: 'selecthouse',
            component: Selecthouse,
            // meta:{keepAlive: true}
        }, {
            path: '/residentInfo/editbaseInfo',
            name: 'editbaseInfo',
            component: EditbaseInfo,
        }, {
            path: '/residentInfo/editsdqtx',
            name: 'editsdqtx',
            component: Editsdqtx,
        },{
            path: '/residentInfo/edittudi',
            name: 'edittudi',
            component: Edittudi,
        },{
            path: '/residentInfo/editzhengdi',
            name: 'editzhengdi',
            component: Editzhengdi,
        },{
            path: '/residentInfo/editfuken',
            name: 'editfuken',
            component: Editfuken,
        },{
            path: '/residentInfo/edithouse',
            name: 'edithouse',
            component: Edithouse,
        }, {
            path: '/residentInfo/editchanye',
            name: 'editchanye',
            component: Editchanye,
        }, {
            path: '/companyInfo/index',
            name: 'companyInfo',
            component: CompanyInfo,
            // meta:{keepAlive: true}
        }, {
            path: '/companyInfo/companyDetail',
            name: 'companyDetail',
            component: CompanyDetail,
            // meta:{keepAlive: true}
        }, {
            path: '/companyInfo/requiredDetail',
            name: 'requiredDetail',
            component: RequiredDetail,
            // meta:{keepAlive: true}
        }, {
            path: '/companyInfo/optionDetail',
            name: 'optionDetail',
            component: OptionDetail,
            // meta:{keepAlive: true}
        }, {
            path: '/companyInfo/addproduct',
            name: 'addproduct',
            component: Addproduct,
            // meta:{keepAlive: true}
        }, {
            path: '/userInfo/index',
            name: 'userInfo',
            component: userInfo,
            // meta:{keepAlive: true}
        },{
            path: '/userInfo/index1',
            name: 'userInfo1',
            component: userInfo1,
            // meta:{keepAlive: true}
        },
        {
            path: '/userInfo/resetPwd',
            name: 'resetPwd',
            component: resetPwd,
            // meta:{keepAlive: true}
        },
        {
            path: '/userInfo/problems',
            name: 'problem',
            component: problem,
            // meta:{keepAlive: true}
        },
        {
            path: '/userInfo/aboutUs',
            name: 'aboutUs',
            component: aboutUs,
            // meta:{keepAlive: true}
        },
    ]
})
